package com.ybkj.chat.module.dynamic.fragment;

import android.support.v7.widget.GridLayoutManager;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpFragment;
import com.ybkj.chat.module.dynamic.adapter.ClassifyCreatAdapter;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;

import butterknife.BindView;

/**
 * 按分类创建群聊9.6  tab2
 */
public class ClassifyCreatFragment extends BaseMvpFragment {

    @BindView(R.id.irc)
    XRecyclerView irc;

    private ClassifyCreatAdapter mClassifyCreatAdapter;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initView() {
        mClassifyCreatAdapter = new ClassifyCreatAdapter(mContext);
        mClassifyCreatAdapter.addData("1");
        mClassifyCreatAdapter.addData("1");
        mClassifyCreatAdapter.addData("1");
        mClassifyCreatAdapter.addData("1");
        mClassifyCreatAdapter.addData("1");
        mClassifyCreatAdapter.addData("1");
        mClassifyCreatAdapter.addData("1");
        mClassifyCreatAdapter.addData("1");
        irc.setLayoutManager(new GridLayoutManager(mContext, 4));
        irc.setAdapter(mClassifyCreatAdapter);
    }

    @Override
    protected void initData() {

    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_classify_creat;
    }

    @Override
    protected String getSimpleNme() {
        return null;
    }

}
